package com.model.dto.sys.userController;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.*;

/**
 * @Author: zql
 * @Description: 用户状态
 * @Data: 10:36 2021/12/7
 */
@Data
public class UpdateUserStatusDTO {
        @ApiModelProperty(value = "用户id",required = true)
        @NotNull(message = "sysUserId不能为空")
        Long sysUserId;

        @ApiModelProperty(value = "状态（0:有效,1:停用,2:删除）",allowableValues = "0,1,2")
        @Min(value = 0, message = "0:启用，1:停用，2:删除")
        @Max(value = 2, message = "0:启用，1:停用，2:删除")
        Byte isDelete;
}
